***************************************************************************	
* Do file for AFRICAN GOVERNMENT DATA in McAllister "Casting a Shadow Over War Zones?  Hard Truths About the ICC's Efforts to Deter Wartime Atrocities"
***************************************************************************	


use ICC_All_Africa_Govt_Dataset_Sept2022_Final.dta


***************************************************************************	
* This portion replicates all data in Table 1
***************************************************************************	

**************************************
* RESULTS FROM MODEL 1: ICC actions during a conflict
**************************************
xtnbreg govt_OSV_best_fatality_estimate ICC_conflict_actions ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* RESULTS FROM MODEL 2: Cumulative ICC Actions
**************************************
xtnbreg govt_OSV_best_fatality_estimate cum_ICC_action_dummy ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* RESULTS FROM MODEL 3: ICC Ratification
**************************************
xtnbreg govt_OSV_best_fatality_estimate icc_ratification ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* RESULTS FROM MODEL 4: Complementarity
**************************************
xtnbreg govt_OSV_best_fatality_estimate csr ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* RESULTS FROM MODEL 5: Justice Cascade Effect on Culpable Governments
**************************************
xtnbreg govt_OSV_best_fatality_estimate pre_1998_mass_killing ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year if krcmaric_sample==1, nolog re

**************************************
* RESULTS FROM MODEL 6: Justice Cascade Effect on Non-Culpable Governments
**************************************
xtnbreg govt_OSV_best_fatality_estimate no_pre_1998_mass_killing ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year if krcmaric_sample==1, nolog re

**************************************
* RESULTS FROM MODEL 6: Justice Cascade Effect on Non-Culpable Governments
**************************************


***************************************************************************	
* This portion replicates all data in Table 2
***************************************************************************	
xtnbreg govt_OSV_best_fatality_estimate ICC_conflict_actions ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re
margins, at (ln_bd_best_yearly_avg=(20(10)80)) atmeans vsquish post

xtnbreg govt_OSV_best_fatality_estimate ICC_conflict_actions ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re
margins, at (ln_GDP_lag=(20(10)80)) atmeans vsquish post

xtnbreg govt_OSV_best_fatality_estimate ICC_conflict_actions ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re
margins, at(rule_of_law=(20(10)80)) atmeans vsquish post


***************************************************************************	
* This portion replicates all data and Tables A-D from the online supplement	
***************************************************************************	

**************************************
* Summary Statistics
**************************************
summarize govt_OSV_best_fatality_estimate ICC_conflict_actions ICC_conflict_actions_dummy cum_ICC_action_dummy icc_ratification csr csr_dummy pre_1998_mass_killing ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference

**************************************
* Table A. Impact of ICC Conflict Actions By Conflict Start Date
**************************************
xtnbreg govt_OSV_best_fatality_estimate i.ICC_conflict_actions_dummy##i.govt_conflict_preICC ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* Table B. Impact of ICC Cumulative Actions By Conflict Start Date
**************************************
xtnbreg govt_OSV_best_fatality_estimate i.cum_ICC_action_dummy##i.govt_conflict_preICC ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* Table C. Impact of ICC Ratification By Conflict Start Date
**************************************
xtnbreg govt_OSV_best_fatality_estimate i.icc_ratification##i.govt_conflict_preICC ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re

**************************************
* Table D. Impact of Domestic Crime Statute Reform By Conflict Start Date
**************************************
xtnbreg govt_OSV_best_fatality_estimate i.csr_dummy##i.govt_conflict_preICC ln_bd_best_yearly_avg ln_GDP_lag polity2 rule_of_law justice_preference peace_preference i.year, nolog re
